package com.realtyManage.springboot.Model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Security
 *
 * @Author 杭州素色网络科技有限公司
 * @Date 2019/3/28
 **/
/*@Configuration*/
@Component
@PropertySource(value= "classpath:config/security.properties")
@ConfigurationProperties(prefix="jwt.sign")
public class Security {
    /*@Value("${key}")*/
    private String key;

    /*@Value("${method}")*/
    private String method;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
}
